-- GET_TREASURE_EQUIP_BONUS

-- 海贼宝藏装备奖励
return function(treasureId)
    -- 随机1~3阶装备×1
    -- 1到3阶的比例为1:3:6
    local rand1 = DungeonM.getRandSeed("treasure_bonus");
    local rand2 = DungeonM.getRandSeed("treasure_bonus");
    local arr = { { ["rank"] = 1, ["ratio"] = 60 }, { ["rank"] = 2, ["ratio"] = 30, }, 
        { ["rank"] = 3, ["ratio"] = 10 }, };

    -- 抽取宝物
    local rank = fetchElemBySeed(arr, rand1)["rank"];
    local equipArr = ItemM.getEquipByRank(rank);
    local classId = FormulaM.invoke("FETCH_BY_RAND", equipArr, rand2);

    return { { 1, classId, 1 } };
end